﻿using System.Security.Cryptography;
using System.Text;


namespace Blog.Utility._MD5
{
	/// <summary>
	/// md5加密
	/// </summary>
	public static class _MD5
	{
		public static string MD5Encrypt32(string password) {
			string pwd = "";
		    MD5 md5 = MD5.Create();
			byte[] s = md5.ComputeHash(Encoding.UTF8.GetBytes(password));
			for (int i = 0; i < s.Length; i++)
			{
				pwd = pwd + s[i].ToString("X");
			}
			return pwd;
		}
	}
}
